package nc.impl.arap.server;

import nc.bs.arap.paybill.bp.ExcelBp;
import nc.bs.arap.paybill.bp.File2EASBp;
import nc.bs.dao.BaseDAO;
import nc.itf.arap.server.IPayBillServerExtkk;
import nc.vo.arap.pay.AggPayBillVO;
import nc.vo.eas.EASRequestLog;
import nc.vo.pub.BusinessException;
import nc.vo.pub.SuperVO;

public class PayBillServerExtkkImpl implements IPayBillServerExtkk {

	@Override
	public byte[] getPaymentMailPatch(AggPayBillVO billvo) throws Exception {
		
		return new ExcelBp().exec(billvo);
	}

	@Override
	public void sendFile2EAS(EASRequestLog logvo) throws Exception {
		new File2EASBp().exec(logvo);
	}

	@Override
	public int executeUpdate__RequiresNew(SuperVO vo) throws BusinessException {
		BaseDAO dao = new BaseDAO();
		return dao.updateVO(vo);
	}
	
}
